package com.boang.exception;

/*
  @author: 13813
  @date: 2024/11/22 15:40
*/
public class ErrorDemo {
    public static void main(String[] args) {
        //OutOfMemoryError 内存溢出
//        int[] ints = new int[1024 * 1024 * 1024];
        m1(); //StackOverflowError
    }

    //递归
    public static void m1(){
        m1();
    }
}
